namespace AppGISENA.AccesoDatosModelFirst
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class UP_Campo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long Cod_UP { get; set; }

        [StringLength(100)]
        public string Dir_Predio { get; set; }

        [StringLength(50)]
        public string Tenecia { get; set; }

        public decimal? Area_Predio { get; set; }

        public decimal? Area_Potencial { get; set; }

        public decimal? Area_UP { get; set; }

        [StringLength(20)]
        public string Tipo_Predio { get; set; }

        [StringLength(100)]
        public string Vereda_Barrio { get; set; }

        public decimal? Altura_GNS { get; set; }

        public DbGeography Shape { get; set; }

        [StringLength(100)]
        public string Nom_Predio { get; set; }

        [Column(TypeName = "image")]
        public byte[] Foto { get; set; }

        public virtual Caracterizacion_UP Caracterizacion_UP { get; set; }
    }
}
